package com.ag.hmk.action;

import java.util.List;

import com.ag.bean.TbLawnature;
import com.ag.common.BaseAction;
import com.ag.hmk.service.impl.LawNatureServImpl;
/**
 * 
 * @author hmk
 * 查询所有法规性质记录
 */
public class GetLawNatureAction extends BaseAction {

	private static final long serialVersionUID = 6505466309033268915L;
	private LawNatureServImpl lawNatureServImpl;
	
	private List<TbLawnature> lawNatureList;
	
	/*
	 * 查询所有法规性质记录
	 */
	public String findAll()throws Exception{
		List<TbLawnature> list = null;
		try {
			list = lawNatureServImpl.findAll();
		} catch (Exception e) {
			e.printStackTrace();
			list = null;
		}
		this.setLawNatureList(list);
		System.out.println("--------find all lawnature ok");
		return "getLawNatureOK";
	}

	public List<TbLawnature> getLawNatureList() {
		return lawNatureList;
	}

	public void setLawNatureList(List<TbLawnature> lawNatureList) {
		this.lawNatureList = lawNatureList;
	}

	public void setLawNatureServImpl(LawNatureServImpl lawNatureServImpl) {
		this.lawNatureServImpl = lawNatureServImpl;
	}
	
}
